package com.lu.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统业务日志
 * </p>
 *
 * @author wangqieyu
 * @since 2022-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SystemBusinessLog extends Model<SystemBusinessLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父id
     */
    private Long pid;

    /**
     * 访问ip
     */
    private String ip;

    /**
     * 场景
     */
    private String scene;

    private String code;

    /**
     * 方法名
     */
    private String method;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 类型
     */
    private Integer type;

    /**
     * 调用描述
     */
    private String description;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
